<!--调度系统接单用-->
@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>任务单识别</h5>
            </div>
            <div class="ibox-content" style="height: 700px">
                <div class="form-horizontal" id = "trwdSbForm">
                    <div class="row">
                        <div class="col-sm-8">
                            <div class="form-group" style="height: 268px">
                                <label class="col-sm-1 control-label" style="width: 120px;">报单内容</label>
                                <div class="col-sm-6" style="width: 435px; height: 284px;">
                                    <!--<div id="editor" class="editorHeight1" style="height: 250px">
                                    </div>-->
                                    <textarea id="editor1" rows=13" class="form-control"></textarea>
                                </div>
                                <div class="col-sm-2"><br/><br/><br/>
                                    <#button btnCss="warn" name="选择打印机" id="printBtn" icon="fa-folder-open" clickFun="TrwdSbDlg.selectDefaultPrinterSubmit()"/><br/><br/>
                                    <#button btnCss="warn" name=" 打 印 设 计" id="printBtn1" icon="fa-file" clickFun="TrwdSbDlg.printDesignSubmit()"/><br/><br/>
                                    <#button btnCss="warn" name=" 预 览 打 印" id="printBtn1" icon="fa-search" clickFun="TrwdSbDlg.previewSubmit()"/><br/><br/>
                                    <#button btnCss="info" name="开始自动识别" id="paste" icon="fa-check" clickFun="TrwdSbDlg.analyse()"/><br/>
                                </div>
                                <div class="col-sm-2"><br/><br/><br/>
                                    <!--<#button btnCss="info" name="保存任务单" id="saveBtn" icon="fa-check" clickFun="TrwdSbDlg.addSubmit()"/><br/><br/>-->
                                    <!--<#button btnCss="success" name="直 接 打 印" id="printBtn2" icon="fa-check" clickFun="TrwdSbDlg.printSubmit()"/><br/>-->
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 80px;">提示</label>
                                <div class="col-sm-3" style="width: 350px; color: red; font-weight: bold;">
                                    工程名称：统一工程名称<br/>
                                    施工单位：施工单位全称<br/>
                                    浇筑部位：实际部位<br/>
                                    强度等级：C+数字(按实际填写)<br/>
                                    预计方量：数字+m³(方或者立方也可以)<br/>
                                    浇筑时间：2024年3月15日下午3点（2024年3月15日上午7点 或 2024年3月15日晚上7点）<br/>
                                    卸料方式：建议泵送或者非泵<br/>
                                    工地电话：姓名+手机号<br/>
                                    工地地址：实际送货地址<br/>
                                    资料要求：开盘鉴定及试块（试块代表需要送检）<br/>
                                    塌落度：150±30（泵送），100±20（非泵）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-4 col-sm-4">
                            <#input id="FGcmc" name="工程名称" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="FHtdw" name="施工单位" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <!--<#button btnCss="info" name="修改任务单" id="editBtn" icon="fa-check" clickFun="TrwdSbDlg.editSubmit()"/>-->
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-4 col-sm-4">
                            <#input id="FGcdz" name="工地地址" value="/" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="FJzbw" name="浇筑部位" />
                        </div>
                        <div class="col-lg-4 col-sm-4" style="color: red;">
                            <div class="input-group">
                                <label style="color: darkorange; font-weight: bold; padding-top: 7px; margin-bottom: 0; text-align: right; float: left; min-width: 47px; margin-right: 34px;">任务单号</label>
                                <input id="FRwdh" type="text" class="form-control" style="width: 103px"/>
                                <!--<#input id="FRwdh" name="任务单号"/>-->
                                <button type="button" id="refresh" onclick="TrwdSbDlg.getRwd()" class="btn btn-mini btn-primary"
                                        style="margin-right: 2px; " title="查找任务单"><i class="layui-icon layui-icon-refresh">刷新</i></button>
                                <button type="button" id="lastRwd" onclick="TrwdSbDlg.lastRwd()" class="btn btn-mini btn-primary"
                                        style="margin-right: 2px; " title="查找更小单号的任务单"><i class="layui-icon layui-icon-left">上一个</i></button>
                                <button type="button" id="nextRwd" onclick="TrwdSbDlg.nextRwd()" class="btn btn-mini btn-primary"
                                        style="margin-right: 2px; " title="查找更大单号的任务单"><i class="layui-icon layui-icon-right">下一个</i></button>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-3 col-sm-3">
                            <#input id="FTpz" name="强度等级" />
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="FJzfs" name="卸料方式" />
                            <ul id="jzfs_ul" class="jzfs_ul"></ul>
                            <button type="button" id="refreshJzfs" onclick="TrwdSbDlg.getAllFjzfs()" class="btn btn-info jzfs_btn" title="刷新卸料方式">
                                <i class="layui-icon layui-icon-component" style="width: 16px; height: 16px;"></i></button>
                            <!--<#dictSelector id="FJzfs" name="sex" code="sys_sex" label="卸料方式" type="select" searchnum="2" />-->
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#select id="Ftld" name="塌落度">
                                <option value="/" selected>/</option>
                                <option value="100±20">100±20</option>
                                <option value="140±20">140±20</option>
                                <option value="150±30">150±30</option>
                                <option value="200±20">200±20</option>
                            </#select>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="FJhsl" name="预计方量" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-3 col-sm-3">
                            <#input id="FJhrq" name="浇筑时间" />
                            <ul id="fjhrq_ul" class="fjhrq_ul"></ul>
                            <button type="button" id="refreshFjhrq" onclick="TrwdSbDlg.getFjhrq()" class="btn btn-info fjhrq_btn" title="查找最近浇筑时间">
                                <i class="layui-icon layui-icon-time" style="width: 16px; height: 16px;"></i></button>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="gddh" name="工地电话" />
                            <ul id="gddh_ul" class="gddh_ul"></ul>
                            <button type="button" id="refreshGddh" onclick="TrwdSbDlg.getGddh()" class="btn btn-info gddh_btn" title="刷新工地电话">
                                <i class="layui-icon layui-icon-cellphone" style="width: 16px; height: 16px;"></i></button>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="zlyq" name="资料要求" value="/" />
                            <ul id="zlyq_ul" class="zlyq_ul">
                                <li>/</li>
                                <li>开盘鉴定</li>
                                <li>开盘鉴定及试块</li>
                            </ul>
                            <!--<#select id="zlyq" name="资料要求">
                            <option value="/" selected>/</option>
                            <option value="开盘鉴定">开盘鉴定</option>
                            <option value="开盘鉴定及试块">开盘鉴定及试块</option>
                            </#select>-->
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#select id="FRwxz" name="任务性质">
                                <option value="" selected>任务性质</option>
                                <option value="局内">局内</option>
                                <option value="局外">局外</option>
                                <option value="其它">其它</option>
                            </#select>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-3 col-sm-3">
                            <#input id="Fdlrq" name="登记日期" readonly="readonly"/>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="Fczy" name="操作员" readonly="readonly"/>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#input id="FZt" name="状态" readonly="readonly"/>
                        </div>
                        <div class="col-lg-3 col-sm-3">
                            <#button btnCss="danger" name="保存任务单" id="saveBtn" icon="fa-check" clickFun="TrwdSbDlg.addSubmit()"/>
                            <#button btnCss="success" name="直 接 打 印" id="printBtn2" icon="fa-check" clickFun="TrwdSbDlg.printSubmit()"/>
                        </div>
                    </div>
                    <div class="row">
                        <fieldset>
                            <legend>当天任务单<button type="button" id="todayRwd" onclick="TrwdSbDlg.search()" class="btn btn-primary"
                                            title="查找今天下单的任务单" style="margin-left: 10px;"><i class="layui-icon layui-icon-flag">刷新</i></button>
                            </legend>
                            <div>
                                <#table id="rwdTable"/>
                            </div>
                        </fieldset>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/js/common/utils.js"></script>
<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
<script src="${ctxPath}/static/modular/business/trwd/trwd_sb.js"></script>
<script language="javascript" src="${ctxPath}/static/js/plugins/lodop/LodopFuncs.js"></script>
<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
<script>
    laydate.render({
        elem: '#beginTime'
    });
    laydate.render({
        elem: '#endTime'
    });
</script>
<style>
    .w-e-text-container{
        height: 250px !important;
    }

    .jzfs_ul {
        position: absolute;
        left: 29%;
        top: 71%;
        width: 67%;
        text-align: left;
        padding-left: 9px;
        z-index: 99999;
        border: 1px solid #cbcbe0;
        overflow-y: scroll;
        height: 136px;
        cursor: pointer;
        background-color: #ebebf1;
        border-bottom-left-radius: 6px;
        -moz-border-radius-bottomleft: 6px;
        border-bottom-right-radius: 6px;
        -moz-border-radius-bottomright: 6px;
        display: none;
    }

    .jzfs_ul::-webkit-scrollbar {
        width: 6px;
    }

    .jzfs_ul::-webkit-scrollbar-thumb {
        border-radius: 5px;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #666666;
    }

    .jzfs_ul::-webkit-scrollbar-thumb:hover {
        background: #333333;
    }

    .jzfs_ul::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #eeeeee;
    }

    .jzfs_ul::-webkit-scrollbar-button {
        background: #eeeeee;
    }

    .jzfs_ul::-webkit-scrollbar-corner {
        background-color: transparent;
    }

    /*水平方向滚动条*/
    .jzfs_ul::-webkit-scrollbar:horizontal {
        width: 6px;
    }

    /*垂直方向滚动条*/
    .jzfs_ul::-webkit-scrollbar:vertical {
        width: 6px;
    }

    .jzfs_ul li {
        height: 23px;
        font-weight: 500;
    }

    .jzfs_ul li:hover {
        height: 24px;
        font-weight: 600;
        color: #1B1C1D;
    }

    .gddh_ul {
        position: absolute;
        left: 29%;
        top: 71%;
        width: 67%;
        text-align: left;
        padding-left: 9px;
        z-index: 99999;
        border: 1px solid #cbcbe0;
        overflow-y: scroll;
        height: 136px;
        cursor: pointer;
        background-color: #ebebf1;
        border-bottom-left-radius: 6px;
        -moz-border-radius-bottomleft: 6px;
        border-bottom-right-radius: 6px;
        -moz-border-radius-bottomright: 6px;
        display: none;
    }

    .gddh_ul::-webkit-scrollbar {
        width: 6px;
    }

    .gddh_ul::-webkit-scrollbar-thumb {
        border-radius: 5px;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #666666;
    }

    .gddh_ul::-webkit-scrollbar-thumb:hover {
        background: #333333;
    }

    .gddh_ul::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #eeeeee;
    }

    .gddh_ul::-webkit-scrollbar-button {
        background: #eeeeee;
    }

    .gddh_ul::-webkit-scrollbar-corner {
        background-color: transparent;
    }

    /*水平方向滚动条*/
    .gddh_ul::-webkit-scrollbar:horizontal {
        width: 6px;
    }

    /*垂直方向滚动条*/
    .gddh_ul::-webkit-scrollbar:vertical {
        width: 6px;
    }

    .gddh_ul li {
        height: 23px;
        font-weight: 500;
    }

    .gddh_ul li:hover {
        height: 24px;
        font-weight: 600;
        color: #1B1C1D;
    }

    .fjhrq_ul {
        position: absolute;
        left: 29%;
        top: 71%;
        width: 67%;
        text-align: left;
        padding-left: 9px;
        z-index: 99999;
        border: 1px solid #cbcbe0;
        overflow-y: scroll;
        height: 136px;
        cursor: pointer;
        background-color: #ebebf1;
        border-bottom-left-radius: 6px;
        -moz-border-radius-bottomleft: 6px;
        border-bottom-right-radius: 6px;
        -moz-border-radius-bottomright: 6px;
        display: none;
    }

    .fjhrq_ul::-webkit-scrollbar {
        width: 6px;
    }

    .fjhrq_ul::-webkit-scrollbar-thumb {
        border-radius: 5px;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #666666;
    }

    .fjhrq_ul::-webkit-scrollbar-thumb:hover {
        background: #333333;
    }

    .fjhrq_ul::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #eeeeee;
    }

    .fjhrq_ul::-webkit-scrollbar-button {
        background: #eeeeee;
    }

    .fjhrq_ul::-webkit-scrollbar-corner {
        background-color: transparent;
    }

    /*水平方向滚动条*/
    .fjhrq_ul::-webkit-scrollbar:horizontal {
        width: 6px;
    }

    /*垂直方向滚动条*/
    .fjhrq_ul::-webkit-scrollbar:vertical {
        width: 6px;
    }

    .fjhrq_ul li {
        height: 23px;
        font-weight: 500;
    }

    .fjhrq_ul li:hover {
        height: 24px;
        font-weight: 600;
        color: #1B1C1D;
    }

    .gddh_btn {
        position: absolute;
        left: 97%;
        top: 10%;
        z-index: 9999;
        padding: 1px;
    }

    .jzfs_btn {
        position: absolute;
        left: 97%;
        top: 10%;
        z-index: 9999;
        padding: 1px;
    }

    .fjhrq_btn {
        position: absolute;
        left: 97%;
        top: 10%;
        z-index: 9999;
        padding: 1px;
    }

    .zlyq_ul {
        position: absolute;
        left: 29%;
        top: 71%;
        width: 67%;
        text-align: left;
        padding-left: 9px;
        z-index: 99999;
        border: 1px solid #cbcbe0;
        overflow-y: scroll;
        height: 136px;
        cursor: pointer;
        background-color: #ebebf1;
        border-bottom-left-radius: 6px;
        -moz-border-radius-bottomleft: 6px;
        border-bottom-right-radius: 6px;
        -moz-border-radius-bottomright: 6px;
        display: none;
    }

    .zlyq_ul::-webkit-scrollbar {
        width: 6px;
    }

    .zlyq_ul::-webkit-scrollbar-thumb {
        border-radius: 5px;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #666666;
    }

    .zlyq_ul::-webkit-scrollbar-thumb:hover {
        background: #333333;
    }

    .zlyq_ul::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #eeeeee;
    }

    .zlyq_ul::-webkit-scrollbar-button {
        background: #eeeeee;
    }

    .zlyq_ul::-webkit-scrollbar-corner {
        background-color: transparent;
    }

    /*水平方向滚动条*/
    .zlyq_ul::-webkit-scrollbar:horizontal {
        width: 6px;
    }

    /*垂直方向滚动条*/
    .zlyq_ul::-webkit-scrollbar:vertical {
        width: 6px;
    }

    .zlyq_ul li {
        height: 23px;
        font-weight: 500;
    }

    .zlyq_ul li:hover {
        height: 24px;
        font-weight: 600;
        color: #1B1C1D;
    }
</style>
@}
